﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Has a path to a texture and a texture type
/// </summary>
public class Texture
{
    public enum Type
    {
        diffuse,
        normal
    }

    public string m_path;
    public Type m_type;

	public Texture(string a_path, Type a_type)
	{
        m_path = a_path;
        m_type = a_type;
	}

    /// <summary>
    /// Returns the type in string format that this texture is
    /// </summary>    
    public string GetType()
    {
        return GetTypeString(m_type);       
    }

    public static string GetTypeString(Type a_type)
    {
        switch (a_type)
        {
            case Type.diffuse:
                return "Diffuse Map";
            case Type.normal:
                return "Normal Map"; 
            default:
                return null;
        }
    }

    public static string GetCommandTypeString(Type a_type)
    {
        switch (a_type)
        {
            case Type.diffuse:
                return Strings.ModelItem.ListCommands.diffusemap;
            case Type.normal:
                return Strings.ModelItem.ListCommands.normalmap;
            default:
                return null;
        }
    }
}